package com.biz.primus.ms.auth.dao.repository;

import com.biz.primus.base.enums.CommonStatus;
import com.biz.primus.ms.auth.dao.po.MenuItem;
import com.biz.primus.ms.base.jpa.repository.CommonJpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MenuItemRepository extends CommonJpaRepository<MenuItem, Long>, MenuGroupDao, JpaSpecificationExecutor<MenuItem> {


    List<MenuItem> findAllByOrderByOrderIndexAsc();

    List<MenuItem> findByStatusOrderByOrderIndexAsc(CommonStatus status);
}

